<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The Yaf_Response_Abstract class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="yaf-request-simple.isxmlhttprequest.html">Yaf_Request_Simple::isXmlHttpRequest</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="yaf-response-abstract.appendbody.html">Yaf_Response_Abstract::appendBody</a></div>
 <div class="up"><a href="book.yaf.html">Yaf</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.yaf-response-abstract" class="reference">

 <h1 class="title">The Yaf_Response_Abstract class</h1>
 

 <div class="partintro"><p class="verinfo">(Yaf &gt;=1.0.0)</p>


  <div class="section" id="yaf-response-abstract.intro">
   <h2 class="title">简介</h2>
   <p class="para">

   </p>
  </div>


  <div class="section" id="yaf-response-abstract.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">Yaf_Response_Abstract</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constants */</div> 
    <div class="fieldsynopsis"> 
     <span class="modifier">const</span> 
     <span class="type">string</span> 
      <var class="fieldsynopsis_varname"><var class="varname">DEFAULT_BODY</var></var> 
     <span class="initializer"> = &quot;content&quot;</span> 
    ;</div>
 

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">protected</span>
      <var class="varname"><a href="class.yaf-response-abstract.html#yaf-response-abstract.props.header">$<var class="varname">_header</var></a></var>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">protected</span>
      <var class="varname"><a href="class.yaf-response-abstract.html#yaf-response-abstract.props.body">$<var class="varname">_body</var></a></var>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">protected</span>
      <var class="varname"><a href="class.yaf-response-abstract.html#yaf-response-abstract.props.sendheader">$<var class="varname">_sendheader</var></a></var>
    ;</div>


    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="yaf-response-abstract.appendbody.html" class="methodname">appendBody</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$content</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$key</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="yaf-response-abstract.clearbody.html" class="methodname">clearBody</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$key</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="yaf-response-abstract.clearheaders.html" class="methodname">clearHeaders</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">private</span> <span class="type">void</span><span class="methodname"><a href="yaf-response-abstract.clone.html" class="methodname">__clone</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="yaf-response-abstract.construct.html" class="methodname">__construct</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="yaf-response-abstract.destruct.html" class="methodname">__destruct</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">mixed</span><span class="methodname"><a href="yaf-response-abstract.getbody.html" class="methodname">getBody</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$key</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="yaf-response-abstract.getheader.html" class="methodname">getHeader</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="yaf-response-abstract.prependbody.html" class="methodname">prependBody</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$content</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$key</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="yaf-response-abstract.response.html" class="methodname">response</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">protected</span> <span class="type">void</span><span class="methodname"><a href="yaf-response-abstract.setallheaders.html" class="methodname">setAllHeaders</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="yaf-response-abstract.setbody.html" class="methodname">setBody</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$content</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$key</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="yaf-response-abstract.setheader.html" class="methodname">setHeader</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="yaf-response-abstract.setredirect.html" class="methodname">setRedirect</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">private</span> <span class="type">void</span><span class="methodname"><a href="yaf-response-abstract.tostring.html" class="methodname">__toString</a></span>
    ( <span class="methodparam">void</span>
   )</div>

   }</div>


  </div>

  

  <div class="section" id="yaf-response-abstract.props">
   <h2 class="title">属性</h2>
   <dl>

    
     <dt id="yaf-response-abstract.props.header"><var class="varname"><var class="varname">_header</var></var></dt>

     <dd>

      <p class="para"/>
     </dd>

    
    
     <dt id="yaf-response-abstract.props.body"><var class="varname"><var class="varname">_body</var></var></dt>

     <dd>

      <p class="para"/>
     </dd>

    
    
     <dt id="yaf-response-abstract.props.sendheader"><var class="varname"><var class="varname">_sendheader</var></var></dt>

     <dd>

      <p class="para"/>
     </dd>

    
   </dl>

  </div>



 </div>

 










































































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="yaf-response-abstract.appendbody.html">Yaf_Response_Abstract::appendBody</a> — 往已有的响应body后附加新的内容</li><li><a href="yaf-response-abstract.clearbody.html">Yaf_Response_Abstract::clearBody</a> — 清除已经设置的响应body</li><li><a href="yaf-response-abstract.clearheaders.html">Yaf_Response_Abstract::clearHeaders</a> — The clearHeaders purpose</li><li><a href="yaf-response-abstract.clone.html">Yaf_Response_Abstract::__clone</a> — The __clone purpose</li><li><a href="yaf-response-abstract.construct.html">Yaf_Response_Abstract::__construct</a> — The __construct purpose</li><li><a href="yaf-response-abstract.destruct.html">Yaf_Response_Abstract::__destruct</a> — The __destruct purpose</li><li><a href="yaf-response-abstract.getbody.html">Yaf_Response_Abstract::getBody</a> — 获取已经设置的响应body</li><li><a href="yaf-response-abstract.getheader.html">Yaf_Response_Abstract::getHeader</a> — The getHeader purpose</li><li><a href="yaf-response-abstract.prependbody.html">Yaf_Response_Abstract::prependBody</a> — The prependBody purpose</li><li><a href="yaf-response-abstract.response.html">Yaf_Response_Abstract::response</a> — send response</li><li><a href="yaf-response-abstract.setallheaders.html">Yaf_Response_Abstract::setAllHeaders</a> — The setAllHeaders purpose</li><li><a href="yaf-response-abstract.setbody.html">Yaf_Response_Abstract::setBody</a> — 设置响应的Body</li><li><a href="yaf-response-abstract.setheader.html">Yaf_Response_Abstract::setHeader</a> — The setHeader purpose</li><li><a href="yaf-response-abstract.setredirect.html">Yaf_Response_Abstract::setRedirect</a> — The setRedirect purpose</li><li><a href="yaf-response-abstract.tostring.html">Yaf_Response_Abstract::__toString</a> — The __toString purpose</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="yaf-request-simple.isxmlhttprequest.html">Yaf_Request_Simple::isXmlHttpRequest</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="yaf-response-abstract.appendbody.html">Yaf_Response_Abstract::appendBody</a></div>
 <div class="up"><a href="book.yaf.html">Yaf</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
